package com.suzhe.ymall.pay.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 支付记录表
 * </p>
 *
 * @author suzhe
 * @since 2019-08-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_pay_record")
@ApiModel(value = "PayRecord对象", description = "支付记录表")
public class PayRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "支付编号")
    @TableId(value = "pay_no", type = IdType.INPUT)
    private String payNo;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "业务订单号")
    private String orderNo;

    @ApiModelProperty(value = "支付金额。单位:分")
    private Long payAmount;

    @ApiModelProperty(value = "支付平台，1、支付宝，2、微信等")
    private Integer payPlatform;

    @ApiModelProperty(value = "支付流水号")
    private String tradeNo;

    @ApiModelProperty(value = "支付状态")
    private Integer status;

    @ApiModelProperty(value = "发送次数")
    private Integer sendTimes;

    @ApiModelProperty(value = "是否死亡：1、是 0、否")
    private Boolean dead;

    @ApiModelProperty(value = "是否通知：1、是 0、否")
    private Boolean notified;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;


}
